<template>
  <button class="btn"
      v-bind:class="{primary:type=='primary',secondary:type=='secondary',outline:type=='outline',warning:type=='warning',bottom:type=='bottom',disabled:disabled}"
      @click="handleClick"
      v-bind:disabled="disabled">
    <slot></slot>
  </button>
</template>
<script>
    export default{
    	name:'rst-button',
      methods: {
        handleClick(evt) {
          this.$emit('click', evt);
        }
      },
      props:{
          type:{type:String},
          disabled:{type:Boolean}
      }
    }
</script>
